<style type="text/css">
    {literal}
    label {
        display: inline !important;
    }
    {/literal}
</style>
{block name="head"}
<h1>{$Formulario->getNombre()}</h1>
{/block}
<form id="inscripcion" action="{$Action}" method="post" class="form-validate">
    <input type="hidden" name="check" value="post"/>
    <input type="hidden" name="destination" value="{$Formulario->getDestino()}"/>
    {foreach $Formulario->getCamposFormularios() as $pregunta}
    <input type="hidden" name="Names[{$pregunta->getId()}]" value="{$pregunta->getNombreCampo()}"/>
    <dl>
        <dt>
            {render_label q=$pregunta}
        </dt>
        <dd>
            {render_control q=$pregunta}
        </dd>
    </dl>
    {/foreach}
    <div>
        <input type="submit" value="Enviar" class="button" />
    </div>
</form>
{block name="foot"}{/block}
<script type="text/javascript" >
{literal}
jQuery.noConflict();
jQuery(document).ready(function($){
{/literal}

{$UsedControls = QuestionBasedUIControlFactory::instance()->getUsedTypes()}
{foreach $UsedControls as $Control}
    {$Control->renderScript(false)}
{/foreach}

{$Constraints = ConstraintFactory::instance()->getConstraints()}
{foreach $Constraints as $Constraint}
    {$Constraint->render()}
{/foreach}

{block name="ClientBehavior"}
{/block}

{literal}
    $("#inscripcion").submit(function(){
        var valid = validateForm(document.getElementById("inscripcion"));
        return valid;
    });
});
    {/literal}
</script>